const path = require("path");
const $ = require("jquery");
const fs = require("fs");
const { shell } = require("electron");

var package = require(path.join(__dirname, "../package.json"), 'utf8');
$("#version").html(package.version);

//click
$("#repository").click(function () {
    shell.openExternal(package.repository);
});
$("#changelog").click(function(){
    shell.openExternal(package.repository + "/blob/master/CHANGELOG.md");
});
$("#help").click(function(){
    shell.openExternal(package.repository + "/blob/master/README.md");
});